package com.ccp.dev.qbdms.model;

import com.ccp.dev.core.basic.model.BaseModel;
import com.ccp.dev.core.util.StringPool;
import org.apache.coyote.http2.Http2Protocol;
import org.springframework.http.HttpStatus;

/**
 * 系统部署方式管理,表 sys_org_deploy
 *
 * @author zzy
 * @date 2020-08-03 15:43:36
 */
public class SysOrgDeploy extends BaseModel<SysOrgDeploy> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;
    /**
     * 单位code
     */
    private String orgCode;
    /**
     * 上级单位code
     */
    private String orgCodeParent;
    /**请求协议*/
    private String protocol;
    /**
     * ip地址
     * 变更为保存接口地址
     */
    private String ip;
    /**
     * 端口号
     */
    private Integer port;
    /**
     * 备注
     */
    private String remarker;

    /**部署方式*/
    private String depmethod;
    /**
     * 是否上级
     */
    private String isParent;

    private String orgName;

    public String getIsParent() {
        return isParent;
    }

    public void setIsParent(String isParent) {
        this.isParent = isParent;
    }

    public String getDepmethod() {
        return depmethod;
    }

    public void setDepmethod(String depmethod) {
        this.depmethod = depmethod;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrgCode() {
        return this.orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getIp() {
        return this.ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return this.port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getRemarker() {
        return this.remarker;
    }

    public void setRemarker(String remarker) {
        this.remarker = remarker;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getOrgCodeParent() {
        return orgCodeParent;
    }

    public void setOrgCodeParent(String orgCodeParent) {
        this.orgCodeParent = orgCodeParent;
    }

    public String getUrl(){
        return this.getProtocol()+"://"+this.getIp();
    }

    @Override
    public String toString() {
        return "SysOrgDeploy{" +
                "id='" + id + '\'' +
                ", orgCode='" + orgCode + '\'' +
                ", orgCodeParent='" + orgCodeParent + '\'' +
                ", protocol='" + protocol + '\'' +
                ", ip='" + ip + '\'' +
                ", port=" + port +
                ", remarker='" + remarker + '\'' +
                ", depmethod='" + depmethod + '\'' +
                ", isParent='" + isParent + '\'' +
                ", orgName='" + orgName + '\'' +
                '}';
    }
}
